﻿<avalondock:DockableContent x:Class="BOL.Apps.GeneNetworkBrowser.Controls.AnnotationPane"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:avalondock="clr-namespace:AvalonDock;assembly=AvalonDock"
                    xmlns:core="clr-namespace:BOL.Apps.GeneNetworkBrowser"
                    xmlns:sys="clr-namespace:System;assembly=mscorlib"
                    Title="Annotation"
                    ToolTip=""
                    Icon="/Images/AnnotationPane.png"
                    >
    <avalondock:DockableContent.Resources>
        <ObjectDataProvider x:Key="EnumTissueTypes"  
                        MethodName="GetValues"  
                        ObjectType="{x:Type sys:Enum}">
            <ObjectDataProvider.MethodParameters>
                <x:Type TypeName="core:TissueTypes"/>
            </ObjectDataProvider.MethodParameters>
        </ObjectDataProvider>
    </avalondock:DockableContent.Resources>
    <DataGrid ItemsSource="{Binding Path=Genes}" 
              AutoGenerateColumns="False" 
              CanUserReorderColumns="False"
              CanUserResizeColumns="True"
              CanUserResizeRows="False"
              CanUserSortColumns="True"
              AlternatingRowBackground="#FFFDFDFD"
              AlternationCount="2"
              SelectionMode="Extended"
              SelectionUnit="FullRow"
              HorizontalGridLinesBrush="Transparent"
              VerticalGridLinesBrush="Transparent"
              >
        <DataGrid.Columns>
            <DataGridTextColumn Binding="{Binding Id}" Header="Id" IsReadOnly="True" />
            <DataGridTextColumn Binding="{Binding Symbol}" Header="Symbol" IsReadOnly="True" />
            <DataGridTextColumn Binding="{Binding Chromosome}" Header="Chromosome" IsReadOnly="True" />
            <DataGridTextColumn Binding="{Binding FullName}" Header="Full name" IsReadOnly="True" />
            <DataGridComboBoxColumn SelectedItemBinding="{Binding Type}" Header="Type" IsReadOnly="True" />
            <DataGridComboBoxColumn ItemsSource="{Binding Alternatives}" Header="Alternatives" IsReadOnly="True" />
            <DataGridComboBoxColumn ItemsSource="{Binding Source={StaticResource EnumTissueTypes}}" SelectedItemBinding="{Binding TissueTypes}" Header="Tissue types" IsReadOnly="True" />
        </DataGrid.Columns>
    </DataGrid>
</avalondock:DockableContent>